import ElementPlus from 'element-plus';
import { App } from 'vue';
import 'element-plus/dist/index.css';
import en from 'element-plus/dist/locale/en.mjs';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import { toLine } from '../utils/index';
export default (app: App) => {
  app.use(ElementPlus, {
    locale: zhCn
  });
  for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(`el-icon-${toLine(key)}`, component);
  }
};
